import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SPos
    
    export  class SPos extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SPos();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.proxyId);
            arg1.writeInt(this.serverId);
            arg1.writeInt(this.map);
            arg1.writeInt(this.subMap);
            arg1.writeInt(this.x);
            arg1.writeInt(this.y);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.proxyId = arg1.readInt();
            this.serverId = arg1.readInt();
            this.map = arg1.readInt();
            this.subMap = arg1.readInt();
            this.x = arg1.readInt();
            this.y = arg1.readInt();
            return;
        }

        public /* const */_type: int=12005;

        public /* var */proxyId: int;

        public /* var */serverId: int;

        public /* var */map: int;

        public /* var */subMap: int;

        public /* var */x: int;

        public /* var */y: int;

        public static /* var */_regist: SPos;
    }

            SPos._regist = new SPos(true);
        